using System.Collections.Generic;
using System.IO;

namespace Pronghorn.Core
{
	public class CollectionRenderer : ICollectionRenderer
	{
		public void Render(IList<IRenderable> list, TextWriter writer)
		{
			if (list == null) return;
			foreach (var renderable in list)
			{
			    renderable.Render(writer);
			}
		}
	}
}